#include"LinkStack.h"

int main()
{
	int a,b;
	InitStack(&s);
	Push(&s,1);
	Push(&s,2);
	Push(&s,3);
	Push(&s,4);
	Push(&s,5);
	pop(&s,&a);
	GetTop(s,&b);
	printf("%d\n",b);
	printf("%d\n",StackLength(s));
	StackEmpty(s);
	StackTraverse(s);
	ClearStack(&s);
	StackEmpty(s);
	StackTraverse(s);
	return 0;
}